from flask import Flask
import flask_cors
from page import lagou, job, shixiseng

app = Flask(__name__)
flask_cors.CORS(app)


@app.route('/')
def hello_world():  # put application's code here
    return 'Hello World!'


@app.route('/job_get_salary')
def get_salary():
    return lagou.get_salary()


@app.route('/job_get_salary_city')
def get_salary_City():
    return lagou.get_salary_City()


@app.route('/get_positionName')
def get_positionName():
    return lagou.get_positionName()


@app.route('/get_positionNameCompany')
def get_positionNameCompany():
    return lagou.get_positionNameCompany()


@app.route('/get_WordCloud')
def get_WordCloud():
    return lagou.get_WordCloud()


@app.route('/get_education')
def get_education():
    return lagou.get_education()


@app.route('/get_industryField')
def get_industryField():
    return job.get_industryField()


@app.route('/get_companyName')
def get_companyName():
    return job.get_companyName()


@app.route('/get_city')
def get_city():
    return job.get_city()


@app.route('/get_job_salary')
def get_job_salary():
    return job.get_job_salary()


@app.route('/get_positionName_salary')
def get_positionName_salary():
    return job.get_positionName_salary()


@app.route('/get_shixiseng_education')
def get_shixiseng_education():
    return shixiseng.get_shixiseng_education()


@app.route('/get_count_City')
def get_count_City():
    return shixiseng.get_count_City()


@app.route('/get_shixiseng_WordCloud')
def get_shixiseng_WordCloud():
    return shixiseng.get_shixiseng_WordCloud()


@app.route('/get_sxs_industryField')
def get_sxs_industryField():
    return shixiseng.get_sxs_industryField()


@app.route('/get_shixiseng_salary')
def get_shixiseng_salary():
    return shixiseng.get_shixiseng_salary()


@app.route('/get_sxs_positionName')
def get_sxs_positionName():
    return shixiseng.get_sxs_positionName()


@app.route('/get_companySize')
def get_companySize():
    return shixiseng.get_companySize()


@app.route('/get_sxs_companyName')
def get_sxs_companyName():
    return shixiseng.get_sxs_companyName()


@app.route('/get_sxs_positionName_salary')
def get_sxs_positionName_salary():
    return shixiseng.get_sxs_positionName_salary()


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000, debug=True)
